package com.ws.repository;

import com.github.pagehelper.Page;
import com.ws.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentRepository {

    Page<Department> getDepartmentPage(Department department);

    void saveDepartment(Department department);

    Department getDepartmentBasicInfo(@Param("departmentId") Long departmentId);

    Department updateDepartment(Department department);

    void delDepartment(@Param("departmentId")Long departmentId);

    List<Department> getDepartmentList(Department department);
}